package com.leo.listener;

/**
 * @ClassName: AbstractEventListener
 * @Description: ${description}
 * @Author: leo825
 * @Date: 2020-02-17 00:20
 * @Version: 1.0
 */
public abstract class AbstractEventListener implements EventListener {

    /**
     * 监听器的名称
     */
    private String name;

    /**
     * 监听器执行的顺序
     */
    private int sort;

    public String getName() {
        return name;
    }

    @Override
    public int getSort() {
        return sort;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public AbstractEventListener(String name, Integer sort) {
        this.name = name;
        this.sort = sort;
    }
}
